// 元素加载动画 延迟
export function animateDelayedElements(parentSelector: any, childSelector: any, delayTime: number){
  const parents = document.querySelectorAll(parentSelector)
  parents.forEach((parent, index) => {
    const children = parent.querySelectorAll(childSelector)
    children.forEach((child: { style: { animationDelay: string } }, childIndex: number) => {
      child.style.animationDelay = `${delayTime + childIndex * 0.2}s`
    })
  })
}
